home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / fsplit 1.1.1 / fsplit.man < prev    next >
Encoding:
Text File  |  1993-05-07  |  1.7 KB  |  67 lines  |  [TEXT/MPS ]

  1.  
  2.  
  3.  
  4.    RISC                                    fsplit(1)
  5.                                   Unsupported
  6.  
  7.  
  8.  
  9.    Name
  10.      fsplit - splits a multi-routine Fortran file into individual files
  11.  
  12.    Syntax
  13.      fsplit [ -e efile... ] [ file ]
  14.  
  15.    Description
  16.      The fsplit    command    takes as input either a    file or    standard input con-
  17.      taining Fortran source code.  It attempts to split    the input into
  18.      separate routine files of the form    name.f,    where name is the name of the
  19.      program unit (for example:    a function, a subroutine, block    data, or a
  20.      program).
  21.  
  22.      The name for unnamed block    data subprograms has the form blkdtaNNN.f,
  23.      where NNN is three    digits (and a file of this name    does not already
  24.      exist).  For unnamed main programs    the name has the form mainNNN.f.
  25.  
  26.      If    there is an error in classifying a program unit, or if name.f already
  27.      exists, the program unit is put in    a file of the form zzzNNN.f (where
  28.      zzzNNN.f does not already exist).
  29.  
  30.      Normally each subprogram unit is split into a separate file. For exam-
  31.      ple, the following    command    splits the subprogram units "readit" and
  32.      "doit" into separate files:
  33.  
  34.      % fsplit -e readit    -e doit    prog.f
  35.  
  36.  
  37.    Options
  38.      The fsplit    command    takes the following option:
  39.  
  40.      -e    efile      Splits only specified    subprogram units into separate files.
  41.  
  42.    Restrictions
  43.      The fsplit    command    assumes    the subprogram name is on the first noncom-
  44.      ment line of the subprogram unit.    Nonstandard source formats may con-
  45.      fuse fsplit.
  46.  
  47.      You should    not use    -e for unnamed main programs and block data subpro-
  48.      grams since you must predict the created file name.
  49.  
  50.    Diagnostics
  51.      If    fsplit cannot find the names specified by -e, a    diagnostic is written
  52.      to    standard error (stderr).
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                         1
  64.  
  65.  
  66.  
  67.